import React, {useEffect} from 'react';
import {useParams} from "react-router-dom";

function Index(props) {
	const {a,b} = useParams();
	useEffect(()=>{
		console.log("商品列表页面加载完毕！");
		return function(){
			console.log("商品列表页面即将卸载")
		}
	},[])
	return (
		<div>
			<h3>GoodsList</h3>
			<p>a:{a}</p>
			<p>b:{b}</p>
		</div>
	);
}

export default Index;